package com.ruoyi.common.utils.file;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.web.multipart.MultipartFile;

/**
 * 阿里云oss服务文件上传工具类
 * @classname AliOssFileUploadUtils
 * @author ZhanCheng.Li
 * @date 2022/3/21 12:50
 * @version 1.0.0
 */
public class AliOssFileUploadUtils {
	private static final String endpoint = "https://oss-cn-hangzhou.aliyuncs.com";

	private static final String accessKeyId ="";

	private static final String accessKeySecret = "";


	/**
	 *  上传文件
	 * @Date 2022/3/21 12:52
	 * @author ZhanCheng.Li
	 * @param file
	 * @return
	 */
	public String upload2AliOSS(MultipartFile file){
		OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);

		return "";
	}

}
